package test;

import java.util.Comparator;

public class AgeComparator implements Comparator<PersonSortable>
{
	@Override
	public int compare(PersonSortable o1, PersonSortable o2) {
		if(o1.getAge()<o2.getAge()) return -1;
		if(o1.getAge()>o2.getAge()) return 1;
		return 0;
	}
}